package anoaop.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author oldliu
 * @since 1.0
 */
public class AopTest2 {
    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("aop2.xml");
        UserService userService = ac.getBean( UserService.class);
        UserService userService2 = ac.getBean(UserService.class);
        System.out.println(userService==userService2);
    }
}
